/*
	Copyright (C) 2011 Salil Bhagurkar

	This file is part of illusion

	illusion is free software: you can redistribute it and/or modify
	it under the terms of the GNU Lesser General Public License as
	published by the Free Software Foundation, either version 3 of
	the License, or (at your option) any later version.

	illusion is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Lesser General Public License for more details.

	You should have received a copy of the GNU Lesser General Public
	License along with illusion. 
	If not, see <http://www.gnu.org/licenses/>.
*/

#include <kernel/errors.h>

/*
 * All error names
 */

static char *error_names[] = {"Successful. No error occurred.",
"The requested functionality is unsupported.",
"No such device was found or exists.",
"The state of the subsystem or data structure is invalid.",
"The new thing being added already exists.",
"No such entry was found or exists.",
"One or more parameters passed were invalid.",
"The permission to do that cannot be granted.",
"The function was not expected to return. Write better code.",
"The requested resource is out of data.",
"One or more parameters passed were out of legal / supported bounds.",
"The requested resource is currently unavailable.",
"One or more files are pending synchronization with their media.",
"An error occurred while synchronizing one or more files with their media.",
"An unrecognized error occurred.",
"The process caused an exception."};

char *get_error_name(int err)
{
	return error_names[err];
}
